package cn.ym.mall.service;

import cn.ym.mall.entity.Grade;

import java.util.List;

public interface GradeService {
    /**
     * 根据会员id查询折扣
     * @return
     */
    public Grade getGradeBygrid(Integer grid);

    /**
     * 查询会员等级
     * @return
     */
    public List<Grade> getAllGrade();
    /**
     * 修改会员折扣
     * @param grade
     * @return
     */
    public boolean updateGrade(Grade grade);

    /**
     * 通过grid删除会员
     * @param grid
     * @return
     */
    public boolean deleteGradeBygrid(Integer grid);
}
